// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Cluster;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.RepositoryStatsCurrentCountsConverter))]
public sealed partial class RepositoryStatsCurrentCounts
{
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	public RepositoryStatsCurrentCounts(int activeDeletions, int clones, int deletions, int finalizations, Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsShards shards, int snapshotDeletions, int snapshots)
	{
		ActiveDeletions = activeDeletions;
		Clones = clones;
		Deletions = deletions;
		Finalizations = finalizations;
		Shards = shards;
		SnapshotDeletions = snapshotDeletions;
		Snapshots = snapshots;
	}
#if NET7_0_OR_GREATER
	public RepositoryStatsCurrentCounts()
	{
	}
#endif
#if !NET7_0_OR_GREATER
	[System.Obsolete("The type contains required properties that must be initialized. Please use an alternative constructor to ensure all required values are properly set.")]
	public RepositoryStatsCurrentCounts()
	{
	}
#endif
	[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
	internal RepositoryStatsCurrentCounts(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
	{
		_ = sentinel;
	}

	public
#if NET7_0_OR_GREATER
	required
#endif
	int ActiveDeletions { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	int Clones { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	int Deletions { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	int Finalizations { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	Elastic.Clients.Elasticsearch.Cluster.RepositoryStatsShards Shards { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	int SnapshotDeletions { get; set; }
	public
#if NET7_0_OR_GREATER
	required
#endif
	int Snapshots { get; set; }
}